extends InputControl

@onready var label:Label = $Label

var data
var container


func init(menuItemData):
	data = menuItemData
	label.text = data.name
	

func hasSubMenuitem():
	return data.subMenuItemsData.size() > 0
	

func onMouseLeftButtonPressed():
	container.onMenuItemClick(self)
	
